# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wkhtmltopdf
pkgver=0.12.6
pkgrel=0
pkgdesc="Simple shell utility to convert html to pdf"
url="https://wkhtmltopdf.org/"
arch="all !armhf !mips !mips64"
license="LGPL-3.0-or-later"
makedepends="qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtsvg-dev
	qt5-qtxmlpatterns-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$pkgver.tar.gz"
options="!check" # no test suite

build() {
	qmake-qt5 -makefile && make
}

package() {
	make install INSTALL_ROOT="$pkgdir"/usr
}

sha512sums="616f51a9094ae91339ca9b6228ee15a67e4092117d087124e2966d3aa53d1caa27f729a40df4e1f2c95149bea86c9b6f184ce9930f9025728d2cdfe6c94a2fbb  wkhtmltopdf-0.12.6.tar.gz"
